STREAMS-162

Simple patch for problem described in https://issues.apache.org/jira/browse/STREAMS-162