Make no nodes found test more robust

Sometimes ng-if isn't evaluated immediately, so best wait for it.