Add verification of parsing results in Event.

Prevent the server from crashing when someone passes valid, but badly
formatted JSON.

Sending a bad JSON string to the server can bring it down. For instance, if
<code>encoded_data == "[[\"websocket_rails.pong\", {}]]"</code>

A NoMethodError exception is raised and the server goes down.