Corrects handling of port number in WebSockets handshake header values.

Corrects handling of port number in WebSockets handshake header values when the port number is not specified in the server URI, e.g. URI#getPort() returns -1. The case, where URI#getPort() returns -1, were not handled until now.