Fix error where javascript only validation breaks form path differences
When validation is only in javascript, and done during submission, then the draft path becomes closed because the global "we're submitting" variable gets set and doesn't get unset, as the page doesn't reload. This sets the variable correctly when the draft button is set so that drafts get written.
Fix ots/clients/ardc/hypha-tracker#236
ots/clients/ardc/hypha-tracker#236: Attempting to save a draft application after a failed submittal attempt produces the wrong dialog box