fixed crash when deleting a managedObject in a context that object is not part of