 
     # check all files in the given file_list
     set_file_list_checked: (file_list) =>
-        store = @get_store()
+        return if not store = @get_store()
         changes =
             checked_files : store.checked_files.union(file_list)
         if store.file_action? and changes.checked_files.size > 1 and not file_actions[store.file_action].allows_multiple_files

        if path.slice(-1) == '/'
            return path
        else
            if @get_store().displayed_listing?.file_map[misc.path_split(path).tail]?.isdir
                return path + '/'
            else
                return path

                path            : '.'
                cb              : (err, output) =>
                    if not err
                        if not store = @get_store()
                            cb('no store')
                            return
                        library = store.library
                        library = library.set(k, (output.exit_code == 0))
                        @setState(library: library)
                    cb(err)
