Issue #2317141 by rymcveigh, jonloh: Uncaught TypeError when resubmitting a form that had a missing required field