net.websocket: Fix handling of 'protocol' argument