Added null check for curriculum subjects in TeacherUserDetails