Prevent NPE when displaying MapView in IDE