Fixed selectNode inside tree.init/loadData bug.

Fix for #134.