Don't reuse deleted objects when mapping a relationship with identificationAttributes and managedObjectCache

Fixes #1615