Solved TypeError issue for marking a class as taken when you don't have it in your schedule