Fixing NPE when updating Kubernetes hosts