Remove manually setting readable stream to ended in wrap()

Closes #5448