Guard against a device potentially missing a location service.

Fixed #142.