Fix script showing notifications when logged out