Fixed null case when searching for active nodes.