(ITS#4861) Issue with referrals in proxy backends