updated fix to match the commit that landed in Node core (26ca7d7)

The fix was simplified to only check if chunk matches null

https://github.com/joyent/node/commit/26ca7d7