fix for console errors on index page
fix for console errors on index page

Console gave some errors on pages where the scroll-to-top button wasn't available. Fixed that.

daanbeverdam/buster,daanbeverdam/buster