Updated #candidate_courses_list to raise exception if @uid dependency is not present