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