Fix isConnectionError on iOS 8