stream: Do not call endReadable on a non-empty stream