fix auto submission of quizzes with due and lock dates

fixes CNVS-11703
This commit addresses a bug where due dates and lock dates were not
triggering auto submission by javascript when a quiz was taken.

Test plan
- Create a timed quiz with no due date
- take the quiz
- it should auto submit after the time is up.

- Create a quiz with a due date
- take the quiz
- it should auto submit when the due date is reached.

- Create a quiz with a lock date
- take the quiz
- it should auto submit when the lock date is reached.

Change-Id: I8e01b11d7ad060c49538eb53ceec77c5490c368f
Reviewed-on: https://gerrit.instructure.com/32778
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Josh Simpson <jsimpson@instructure.com>