Fixing incorrect check for invalid port number.

Valid port numbers are between 0 and 65535. Anything less than 0 is
considered invalid.