fixed #3868. Add guard check to send method of HttpClient
Merge pull request #5525 from andyque/bug3868

fixed #3868. Add guard check to send method of HttpClient