[mapping] handling of invalid geometries for plotting