Updated streams_core to support emptying streams

This updated is required for a pr I made to the Streams plugin that allows you to empty a stream.