nightMode: Adjust failsafe

I think it makes more sense for the failsafe to be located in beforeLoad, as the only thing it does is remove the localStorage token.