Fixed error if no files are in the form