Fix for walkFiles

(entry as chrome.ChromeFileEntry) does not work if entry is a chrome.DirectoryEntry, however the opposite does work.

[i.e. the following is able to commit without error, the previous code could not showing a type cast error.]

[ping: @gaurave]