make sure jtsGeom is valid.