Properly handle null geometry values in GeoJSON export

Fixes CORE-3221.