MDL-22139 backup - Move gradebook.xml generation from course to final task