allow setting geometry empty in postgres and spatialite provider (applies PR#1343)