Fixed regression in GetLocations/ResourceLocatorAdapter