fixes error when no current user tries to click on 'All users' in NavBar.