avoid printing warning if output stream was valid 2.6.1