fixing bug when calling updateMapBounds with null