prevent infinite recursion in ie8 in quizzes fixes: #6657
prevent infinite recursion in ie8 in quizzes
fixes: #6657

test plan:

 * go to create a new quiz (/courses/x/quizzes/new)
 * press the "new question" link
 * verify that it does not say "out of memory" or
   "stack space exceeded"

Change-Id: Ic791eeb5888381006a048db96f69be606239cf8d
Reviewed-on: https://gerrit.instructure.com/7541
Reviewed-by: Jon Jensen <44f878afe53efc66b76772bd845eb65944ed8232@instructure.com>
Tested-by: Hudson <dfb64870173313a9a7b56f814c8e3b33e268497a@instructure.com>

grahamb/canvas-lms,eCNAP/CANVAS,kyroskoh/canvas-lms,Rvor/canvas-lms,antoniuslin/canvas-lms,antoniuslin/canvas-lms,leftplusrightllc/canvas-lms,arrivu/hiring-site,SwinburneOnline/canvas-lms,ankithbti/canvas_lms,nditech/red-innovadores-lms,eCNAP/CANVAS,narigone/canvas,landonwilkins/canvas-lms,fronteerio/canvas-lms,greyhwndz/canvas-lms,ankithbti/canvas_lms,SwinburneOnline/canvas-lms,Unow/ins,matematikk-mooc/canvas-lms,dgynn/canvas-lms,leftplusrightllc/canvas-lms,arrivu/hiring-site,arrivu/jigsaw-lms,juoni/canvas-lms,arrivu/hoodemo,sfu/canvas-lms,efrj/canvas-lms,samuels410/greatlakes-lms,djbender/canvas-lms,jay3126/canvas-lms,shidao-fm/canvas-lms,skmezanul/canvas-lms,rup/Tarrax,ShreniiNepal/shrenii_lmp,sfu/canvas-lms,SwinburneOnline/canvas-lms,dgynn/canvas-lms,antoniuslin/canvas-lms,arrivu/arrivu-lms,ottenhoff/canvas-lms,parbros/red-innovadores-lms,wrdsb/canvas-lms,va7map/canvas-lms,wimemx/Canvas,grahamb/canvas-lms,sfu/canvas-lms,redconfetti/canvas-lms,sfu/canvas-lms,sli7246/canvas_branch,djbender/canvas-lms,merichar/canvas-lms,instructure/canvas-lms,gbleydon/canvas-lms,icelab/canvas,usmschuck/canvas,ottenhoff/canvas-lms,usmschuck/canvas,juoni/canvas-lms,sdeleon28/canvas-lms,Jyaasa/canvas-lms,Rvor/canvas-lms,AndranikMarkosyan/lms,va7map/canvas-lms,skmezanul/canvas-lms,ShreniiNepal/shrenii_lmp,grahamb/canvas-lms,landonwilkins/canvas-lms,matematikk-mooc/canvas-lms,nditech/red-innovadores-lms,snehakachroo1/LSI_replica,usmschuck/canvas,tgroshon/canvas-lms,em2/canvas-lms,whalejasmine/canvas-lms,HotChalk/canvas-lms,kyroskoh/canvas-lms,Unow/canvas-lms,instructure/canvas-lms,loganrun/pincan,sli7246/canvas_branch,efrj/canvas-lms,narigone/canvas,arrivu/hoodemo,Unow/canvas-lms,grahamb/canvas-lms,arrivu/hiring-site,greyhwndz/canvas-lms,instructure/canvas-lms,ankithbti/canvas_lms,Rvor/canvas-lms,instructure/canvas-lms,shidao-fm/canvas-lms,venturehive/canvas-lms,snehakachroo1/LSI_replica,Jyaasa/canvas-lms,djbender/canvas-lms,kyroskoh/canvas-lms,efrj/canvas-lms,samuels410/greatlakes-lms,rup/Tarrax,dgynn/canvas-lms,greyhwndz/canvas-lms,arrivu/arrivu-lms,snehakachroo1/LSI_replica,parbros/red-innovadores-lms,Jyaasa/canvas-lms,Unow/ins,arrivu/qibla-ecampus,HotChalk/canvas-lms,fronteerio/canvas-lms,utkarshx/canvas-lms,wrdsb/canvas-lms,eCNAP/CANVAS,ottenhoff/canvas-lms,utkarshx/canvas-lms,va7map/canvas-lms,va7map/canvas-lms,shidao-fm/canvas-lms,juoni/canvas-lms,tgroshon/canvas-lms,usmschuck/canvas,AndranikMarkosyan/lms,eCNAP/CANVAS,landonwilkins/canvas-lms,samuels410/greatlakes-lms,wye0220/shindig-canvas,narigone/canvas,Unow/canvas-lms,roxolan/canvas-lms,sli7246/canvas_branch,arrivu/qibla-ecampus,AndranikMarkosyan/lms,SwinburneOnline/canvas-lms,sdeleon28/canvas-lms,Jyaasa/canvas-lms,instructure/canvas-lms,gbleydon/canvas-lms,jay3126/canvas-lms,fronteerio/canvas-lms,Rvor/canvas-lms,matematikk-mooc/canvas-lms,redconfetti/canvas-lms,em2/canvas-lms,wye0220/shindig-canvas,tgroshon/canvas-lms,arrivu/hoodemo,icelab/canvas,ShreniiNepal/shrenii_lmp,roxolan/canvas-lms,skmezanul/canvas-lms,kyroskoh/canvas-lms,sfu/canvas-lms,merichar/canvas-lms,sdeleon28/canvas-lms,jay3126/canvas-lms,utkarshx/canvas-lms,em2/canvas-lms,samuels410/greatlakes-lms,grahamb/canvas-lms,matematikk-mooc/canvas-lms,tgroshon/canvas-lms,leftplusrightllc/canvas-lms,jay3126/canvas-lms,instructure/canvas-lms,arrivu/arrivu-lms,parbros/red-innovadores-lms,djbender/canvas-lms,nditech/red-innovadores-lms,roxolan/canvas-lms,narigone/canvas,AndranikMarkosyan/lms,snehakachroo1/LSI_replica,shidao-fm/canvas-lms,skmezanul/canvas-lms,gbleydon/canvas-lms,loganrun/pincan,wrdsb/canvas-lms,greyhwndz/canvas-lms,sdeleon28/canvas-lms,whalejasmine/canvas-lms,HotChalk/canvas-lms,antoniuslin/canvas-lms,loganrun/pincan,efrj/canvas-lms,instructure/canvas-lms,wye0220/shindig-canvas,arrivu/jigsaw-lms,wimemx/Canvas,merichar/canvas-lms,utkarshx/canvas-lms,arrivu/jigsaw-lms,sfu/canvas-lms,roxolan/canvas-lms,fronteerio/canvas-lms,venturehive/canvas-lms,venturehive/canvas-lms,dgynn/canvas-lms,sfu/canvas-lms,Unow/ins,redconfetti/canvas-lms,HotChalk/canvas-lms,rup/Tarrax,whalejasmine/canvas-lms,leftplusrightllc/canvas-lms,venturehive/canvas-lms,landonwilkins/canvas-lms,wimemx/Canvas,wrdsb/canvas-lms,juoni/canvas-lms,whalejasmine/canvas-lms,arrivu/qibla-ecampus,ShreniiNepal/shrenii_lmp,icelab/canvas,redconfetti/canvas-lms,nditech/red-innovadores-lms