Fix "grey" job state causes IllegalStateException

Bug: https://github.com/holgero/XFD/issues/1