Special case empty zlib streams to avoid buffer error exceptions.