Bugfix for Chrome: sending empty/null protocols breaks the handshake