MDL-42219 quiz: Fix alternate name warnings in quiz

Fix the alternate name warning which is generated when submitting an attempt for a quiz