Added check for null cookie in ProfieViewModel