Fix for node.js stream check