Fixed crashes from intermittent internet connection on iOS

* Fixed a rare crashes that can happen after buying an IAP item or when registering the device for push notifications if the device has an intermittent internet connection.
* Fixed issue were the default iOS notification sound would not play if buttons were sent with the notification on iOS 8.x devices.