MDL-45832 activity completion report: Update code to use Moodle's csv_export_writer class