Fixed bug for STREAMS-80

Fixed bug that would cause processors and writers to end execution early and orphan data.  Bug was introduced in a recent commit.