Avoids fatal error on invalid geometries

wraps the getGeometry() function in a try / catch block. If the geometry if invalid of can't be parsed, it continues with the next one instead of aborting the whole process.