Fix potential segfault when finishing a stream w/o additional input.
Fix potential segfault when finishing a stream w/o additional input.

Signed-off-by: Evan Nemerson <178b62e73cc3fab9e30bf27b2372c9ff92401915@coeus-group.com>

Cloudef/squash,quixdb/squash,quixdb/squash,quixdb/squash,jibsen/squash,Cloudef/squash,jibsen/squash,Cloudef/squash,jibsen/squash,wolut/squash,wolut/squash,wolut/squash