Fix sticky topbar with browserify

At some point the fix introduced in #4971 got lost for this file. As a result, a sticky topbar with foundation 5.2.2 and browserify does not work, because the scroll event does not trigger and there is no error message.