WebSocketClient was null

on a broken socket, WebSocketClient could be null and you might
have been queued up to send stuff. well, that's a problem. so now
only emit if websocketclient isn't null. yeah, it should probably
report something. it doesn't right now.