Fixed map bug due to call to setCenter on map with undefined center