Fix crash in [NSManagedObjectContext rebuildAllContexts]

_mainContextTokenRef
_storeContextTokenRef
_backgroundContextTokenRef

may be NULL if you haven't accessed

[NSManagedObjectContext mainContext]
[NSManagedObjectContext storeContext]
[NSManagedObjectContext backgroundContext]