Fix NPE when there's no current job