Added check for course existence on course code if defined so teachers can modify course shortname freely