Fix bug in Job state method which would fail if no callback was provided