messageTray: Check monitor's existence before trying to update the state
Not doing this will throw a backtrace when running on headless mode and trying to show a notification, due to Main.layoutManager.primaryMonitor being undefined, so it's better to return early. https://bugzilla.gnome.org/show_bug.cgi?id=730551
parent
9a7dbfba