Some more cleanup

- When the last message of the message list is cleared, clear the whole
  notification
- Compare whole message reference, not only UID.