Fixed a bug where we did not handle the fact that a new NSManagedObject has a temporary ID