Fix client crash if corrupt TCP packet makes it through

If a corrupt TCP packet makes it through and causes a JSON.parse error, the code was supposed to emit a 'babel' event and reconnect, but a bug in the client data callback code caused it to crash, instead.