avoid NullPointerException, if a GeoJON object is null