MDL-37161 Backup: Database error caused by grade book settings when importing or restoring a course