MDL-30873 quiz: display an overall grade for preview users.
MDL-30873 quiz: display an overall grade for preview users.

Also, don't display an overall grade unless there is at least one finished attempt.

dilawar/moodle