Prevent crash when window token is null during alert.