Fix form submission with empty data dict