Fixed an issue that prevent form submission if files are not uploaded manually.