Fixed a bug with erroneous file uploads

The bug was that if having a file upload field that does not pass
validation and the form is submitted again without any other added file
in the same file upload field, the client side validation still raises
the same previous error; thanks to George Baltatescu