fixes bug GEOT-4514
Merge pull request #236 from gerson721/9.x

fixes bug GEOT-4514, handling null geometry objects