Fix duplicate key exception on API 401 response

If an API response status is 401, we retry 1 time and send the current headers. On the 2nd attempt, we do not check if the X-Auth-Token exists which causes an "An item with the same key has already been added." exception.