[HttpFoundation] fixed error when an IP in the X-Forwarded-For HTTP header contains a port