stream: Revert to checking for the correct error value.