MDL-34164 quiz reports: only try to show graphs if GD is installed.