[FIXED JENKINS-19183] FileParameter: Does not create file when no file is uploaded

Check if a file has been uploaded before doing the copy.