fix crash after getting a map loading error
Merge pull request #55 from MadrMan/fixes

fix crash after getting a map loading error