stream: use `errorEmitted` from `_writableState`