Prevent app from overwriting error pages

I discovered a bug where the initial search page was getting shown
whenever a 500 or 404 error occurred instead of the expected error
page. This was because app.min.js was getting included in the layout
instead of just the index page. When the app starts, it renders the
search form on the page, clearing out any content already present in
the <body> tag.