Added check for GEOSGeometry instance.