Fix that a form's submit button is not being sent when the method is GET

fixes #6890