Check all GEOS functions for exceptions.

The GEOS documentation doesn't tell us which commands can fail in which ways.
So to be sure all calls to GEOS are wrapped in try-catch and an
osmium::geos_geometry_exception is thrown with the nested GEOS exception.
Make sure to clear temporary data in GEOS factory.