Fix crash when submitting a form  when not clicking on a button.