checking for null when converting geometry and properties

According to GeoJSON spec a Feature can have null geometries and/or null properties.  Added null checks.