Fix memory exception in LWGEOM_GEOS_makeValidCollection