Fixed registering for push notifications for iOS8