GetMapName returns Untitled and not the correct map name when running in Editor.

GetMapName returns Untitled (+an incremented number) instead of the actual map name when I run the game in the editor. Why is that?