Fix broken node change detection

Currently this.selectedNode is always undefined.

Change-Id: Ia60661e22bf33bec7b863cefe35a6262c1a90c11