Ok a little progress, it seems simply removing the function call resolves the issue.
Changing line 8 in search.php from
<div id="content" class="site-content <?php echo main_bootstrap_class(); ?>">
to
<div id="content" class="site-content">
Search now works correctly.