update registerForRemoteNotifications helper method

Previous implementation may cause crash when built on Xcode 6 targeting iOS7 + iOS8