Previously a loop variable was being used for the node name in the diagnostic
returned from the node labels and taints check. If the offending node wasn't the
last one in the list, the wrong node name would be returned.
Add a test to reproduce the issue, and copy the loop variable to fix it.