Fix UI breakage that prevents switching collections
Fix UI breakage that prevents switching collections

I'll add a test later once I figure out how to reproduce this, but I
think this should fix the "id is undefined" errors.

gracile-fr/zotero,gracile-fr/zotero,gracile-fr/zotero