fix memory exception in LWGEOM_GEOS_makeValidCollection