Fixing error when no instructor is assigned to a course