Fix for notification logic making document.title "undefined"