MDL-48171 gradebook: Use proper apis to get item name