MDL-44246 behat: New mod_quiz test when JS is disabled

Also including a modification in behat_question_base
to make the internal method work with both JS and non-JS.