Fixes NullPointerException when starting MapProject without open image.