Fix HttpClient instance in authenticate after last refactor.