Added null check for updateNodeLabel (null nodeName was throwing errors and breaking logs)