Check network on NSURLConnection error

@aaustin