fix NPE if there is no node available

Label#isEmpty() throws NPE if slave does not exist.