Hotfix template nav block using g.user before it's defined