Cope with empty section names.
Moodle 2.6 compatibility fixes
Fix compatibility with Moodle 2.5 and below
Improve performance of checklist_get_participants