stream.js: Avoid double open