Add null check for expandFiles
Merge pull request #326 from yosuke-furukawa/fix/check_null_expandfiles

Add undefined check for expandFiles