Add more nil-checks into SSM for CourseMode