bug#2030155: When changing FileNode I noticed the tree-expansion listener was being added several times. Slight tweak to fix this bug