Do not crash the test suite if the form does not have an `action` attribute.
Do not bind the confirm check twice on `button` elements inside a `form`.

Closes #384.