FIX: currentUser might be undefined (PR #9555)

GitHub

FEATURE: dismiss first notification on click anywhere (#9525) · discourse/discourse@e638d43 · GitHub was causing a lot of silent exceptions when running tests, can you review this please @featheredtoast

Looks like a safe change to me :+1: