GeoJSON: don't crash when operating on empty data


Fix crashes in "geojson_viewer" example when trying to print or store
debug data without loading a file first.

Change-Id: I7b2955d072af8d2a1f39bfca196ffc309e9b4234
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
commit7c7248206907bcb0d65a4810ac5e52faf8da4ec8
parentee7e5de79f83625df1adfb244b0d608dae480728
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeThu, 22 Sep 2022 18:09:26 +0200