Handle null or empty geometries