Issue #1824510 by TravisCarden, abautu: Fail if search-index gets into an infinite loop.