fix per-agent portal branding on logout, RT#32139