Search: Extra parent trees closed, but didn't disappear

The four main branches always showed up, even if there were no search terms inside.

I have updated it so that even the branch will disappear if it doesn't match the search.