[TC] [77366968] fix welcome dialog
* prevent welcome message from running where the div doesn't exist
* prevent the cookie from being expired prematurely