Hiding the button when the tree does not render nodes is not easy, as it will require a first pass on the tree to find if it contains items or not. That won't perform well.
So I added a new property, dropDownRendered, that you can set to false to not render the tree. That should work in your case.