Don't crash when GPSLatitudeRef is missing

Same applies for GPSLongitudeRef. This fixes #9222.