Small cleanup of how RegionToEndpoint checks arguments.