Fixing minor bug in pipeline output.

Had to deal with stories removed by the story-level discards.