Fixed small bug in -saveToRootContext

Check was too early, wasn't saving all the way to the persistent store coordinator.