Fixed nullpointer in CreateClass

-Fixed a null pointer when not having data in fields
-Small change to CourseAttendance to try to make more readable