Text describing tree filtering no longer disappears when environment or
library is changed.
If a category has no children, remove it from the tree.
Merge pull request #322 from fmoloney/SampleFrameworkFixes

Sample framework fixes