[SingleUpload] JS: fix type check when no file given