Fix issue MR-101 - Collapse all folders causes a NullReferenceException