Empty/Undefined error-Events #51

Please see https://github.com/LearnBoost/websocket.io/issues/51