HttpClient: improved exception safety in constructor (TRIVIAL)