FdFile.chooseFile() returns null on Cancel

Should check for null, not for files.length