Don't allow dismissing the notification if it's been created for less than 1s.

This would help prevent accidentally dismissing an important notification when the user was about to press ESC.

Fixes #11658