Fixing gradebook PDF export see #7153