Do not process invalid geometry to avoid fatal error of postgis