Fix a crash on unavailability of a location provider