Better fix for merging items in unsynced libraries

Addresses a79872436