Only unset POST variables if `Widget::submitInput()` returns `true` (see #5474)