FIX: Compatibility with jQuery 1.6+.
FIX: Consecutive topic selection.

Opening again a topic selection dialog was "breaking" the tree.
This regression may have been caused by jQuery or jQuery UI updates.