Avoid writing empty multipolygons to spatialindex.
Otherwise postgres causes GeoNetwork to fail on restart with
exception as follows:

org.postgresql.util.PSQLException: ERROR: geometry contains non-closed rings
Merge remote-tracking branch 'upstream/2.10.x' into 2.10.x