avoid returning null in getMapCenter