Thank you for the hack...it works perfectly!
Something I found that might be a problem. The code for $a->quizreviewlink doesn't show a true link. I changed mine to:
$a->quizreviewlink = $CFG->wwwroot . '/mod/quiz/review.php?attempt=' . $attempt->id;
It works fine now. That is at line 878.
Thank you for all your hard work!