* helm-files.el (helm-find-files-get-candidates): Protect file-directory-p when arg is nil.
(helm-c-find-file-or-marked): Same.