Prevent app crash when no gps data is unavailable

App no longer crashes when gps data is unavailable.