Fix bug where JobStatusCommand can throw NPE