Fixes NOCK_OFF='true' not working for some cases.

This PR fixes #222 and adds a unit test to prove that the bug really exists :). You can try using the old `lib/intercept.js` without the modification and running the tests and it will fail. Thanks in advance!