Delete useless commented-out call to handleOutputStreamSpaceAvailable, and fix the stream:handleEvent: bit flag check