notifications: don't crash if item is None

https://bugzilla.gnome.org/show_bug.cgi?id=730384