Look-up of the location service can fail on some devices. Modified the code to cater for this.