Fix for node transport layer where the offset was incorrectly reset.

Prevent byteOffset out of range error when making asynchronous calls in node.