node: fix AV with -p arg

node -p would cause an access violation.

Fixes test\message\stdin_messages.js on Windows.