[BUG #7806] Fixed node visibility when showLeaf is false.