Correct handling of alert showing in case there's no alert nor cookie.