geometry: allow removing parts and rings or geometries by removing all vertices
(fixes #10684)