Multi-index search possible bugs

When working with Magento 2 extension and add multi-index search to search result, I got an exception. I am able to replicate it here: multi-index-hits (forked) - CodeSandbox

A try-catch around that section will make it work but I feel that’s not the right way.