[TS-2822] Crash in LogBufferIterator::next