Fixed: WebSocket connecting to wrong port if HTTPS URL had no port number

Fixes couchbase/sync_gateway#472