Bypass validation for buttons with 'formnovalidate' attribute (same as class="cancel"). Closes gh-623