Don't crash while waiting for clients

While using koa-webpack-dev-server, I noticed that the websocket server would crash if there were no clients.