Use existingObjectWithID and objectWithID

Sometimes, `objectWithID` returns a new object instead of the
object that is already loaded into the context, so try
existingObjectWithID first.