item-manager: Do not crash when a photo is deleted underneath

Removing an item from PhotosItemManager will destruct it, unless it is
a collection. Do it at the end to avoid having an invalid pointer for
the rest of the block.

Fixes: https://bugzilla.gnome.org/725813