Don't attempt to select items that are not in the item tree

Re https://forums.zotero.org/discussion/33045/issue-with-tag-in-duplicate-items-folder/