url_policy.construct_url fails if tenant set and hostname is None