Fix crash when nobody is logged in