handle bad polygons

if a polygon coming from geonetwork is too long to process for some
browsers it will be truncated and openlayers will not return a proper
geometry
Merge pull request #1471 from aodn/handle_bad_polygons

handle bad polygons