Update theme_quiz_view_stats to make it also work with quiz entity.