Trying to fix file upload error when file is null