[Message Tray] Check for pending notifications before acting. Plus some cleanup.
[notification applet] Handle destroyed notifications gracefully.
Merge pull request #1678 from autarkper/notifications-fix

Notifications fixes