[TC] [77366968] fix welcome dialog

* prevent welcome message from running where the div doesn't exist
* prevent the cookie from being expired prematurely

Story: https://www.pivotaltracker.com/story/show/77366968