Fixed redundant calls

Realized there was an issue with my previous fix when certain kinds of nodes were given to data result viewers (specifically keyword search result nodes). This fixes that issue. There are still some extra calls due to multiple calls of setNode, but this fix minimizes the extra calls as much as possible without fixing that issue.