fix NPE if a command isn't enabled