                     # Assume that if it's loaded, it's good enough.
                     async.waterfall [
                         (cb) =>
-                            {item, err} = @get_store().get_item_in_path(last, parent_path)
-                            #if DEBUG then console.log("ProjectStore::load_target → waterfall1", item, err)
-                            cb(err, item)
+                            if not store = @get_store()
+                                cb('no store')
+                            else
+                                {item, err} = store.get_item_in_path(last, parent_path)
+                                #if DEBUG then console.log("ProjectStore::load_target → waterfall1", item, err)
+                                cb(err, item)
                         (item, cb) => # Fetch if error or nothing found
                             if not item?
                                 #if DEBUG then console.log("ProjectStore::load_target → fetch_directory_listing", parent_path)
                                 @fetch_directory_listing
                                     path         : parent_path
                                     finish_cb    : =>
-                                        {item, err} = @get_store().get_item_in_path(last, parent_path)
-                                        #if DEBUG then console.log("ProjectStore::load_target → waterfall2/1", item, err)
-                                        cb(err, item)
+                                        if not store = @get_store()
+                                            cb('no store')
+                                        else
+                                            {item, err} = stofre.get_item_in_path(last, parent_path)
+                                            #if DEBUG then console.log("ProjectStore::load_target → waterfall2/1", item, err)
+                                            cb(err, item)
                             else
                                 #if DEBUG then console.log("ProjectStore::load_target → waterfall2/2", item)
                                 cb(undefined, item)


    # uncheck all files in the given file_list
    set_file_list_unchecked: (file_list) =>
        changes = {checked_files : @get_store().checked_files.subtract(file_list)}

        if changes.checked_files.size == 0
            changes.file_action = undefined

        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
