Fix failing test from endpoint heuristics

Use the endpoint resolver to find the region name override.
Otherwise it's possible that a ``None`` value can be passed
as a ``region_name`` value to handlers, which we don't want.