Fixed crashes from intermittent internet connection

* 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.