Added the new(ish) submit-failed state to restart checks

Restarting with a submit-failed task was erroneously treated as an error
condition.
Merge pull request #668 from hjoliver/submit-failed-state-at-restart

Added the new(ish) submit-failed state to restart checks