sidebar-links: fix Outline collapse status not being saved
in the particular case of a path being collapsed where it had no descendants.
Closes #1936 (closed)
in the particular case of a path being collapsed where it had no descendants.
Closes #1936 (closed)