calculate bounds should handle null geometries