Catch over-large port numbers early in http Otherwise integer overflow potentially turns the port number into garbage.