Fix Out-of-Sockets Crash

The TCP data handler can crash if it is called without being provided a Buffer object, which can apparently happen if Node.js suddenly runs out of sockets.

cc @squamos