Fix GradeQuiz to handle SinglePage Quiz

Fix GradeQuiz to handle SinglePage Quiz