There is two alteration one is about the location that is sent in the
header of each request for the API. Now there more sources of location
that are looked before return empty location what will prevent one
request with out of date location or even no location.

The second one is about logical change in the code that actually was not
needed at that point and could cause problems.