Fix run workflow in case task state == ERROR

 * If task has state 'ERROR' then we should check
   on-error property and schedule next tasks.
   Otherwise Mistral doesn't schedule any task if
   task failed.

Change-Id: Ib55509e2ca7f9db22bb46ceb930f1ead8a763c78