Possible crash fix on getLastLocation