Revert "[TS-2822] Crash in LogBufferIterator::next"

This reverts commit 7c314c5c9bfa347fd583500698c2c586f668f7ea.