Fix crash when adding an object already in a realm to another realm