Update JtsAdapterFactory.java

Handle null or empty geometries