[HttpFoundation] Fixed Request::getPort returns incorrect value under IPv6

Fixed issue with Request::getPort method returning an incorrect value when the HTTP_HOST header is a IPv6 address.