fix crash on kml export with empty data