Fix bug: 'programmes' and 'course (all years)' courses appearing in the orphaned courses list.