Set state to error instead of completed
test fix for no completed tasks -> error
Merge pull request #152 from telefonicaid/error_state

Set state to error instead of completed