MDL-48047 gradebook: add validation of missing ID number on XML export