Only display expand/collapse class and disclose span when tree node has children

When a tree node is empty the plus/minus sign is still displayed and so is the mouse hover. This commit removes these items for empty tree nodes.