Fixed issue with NSUserDefaults in iOS8. See: http://stackoverflow.com/questions/24244126/nsuserdefault-cant-save-load-in-extension-in-ios8