Speed up submit for [novalidate] and [data-remote!=true] forms

Forms submitted *with* the `novalidate` attribute or *without* the `data-remote` attribute pay the penalty of unnecessary DOM scans to find blank input elements or file elements, respectively, which are never used.  This change moves those DOM scans to a point in the logic where their result could actually be used.