[quiz] Fix bug when appearing fewer questions than expected