Fixed a bug that might lead to infinite recursive loops in dialog tree
viewer when using NI's search functions