pipeline_of_streams: avoid recursing on stream itself if returned by _pipeline