Request->getPort() should prefer HTTP_HOST over SERVER_PORT
[HttpFoundation] improve perf of previous merge (refs #8882)