MDL-46696 backup: Handle older backups not containing grade history