Fix inline collection editing when clicking to another collection

https://forums.zotero.org/discussion/37739