GTNPORTAL-2970: Fix to NPE or wrong site when sorting redirects