handle JTS geometries that are null or empty correctly

1) handle JTS geometries that are null or empty correctly (i.e contain no coordinates) correctly (same idea as in https://github.com/lurajon/geogson/commit/877b13c8f4d10b69cd1887e722076c94fea01999 )
2) added tests