[BUGFIX] Folder tree in popup throws JS error