fix non object error in getNavLinks() when logged out