Fixing processing subworkflow result

* Processing of subworkflow errors
* Unit tests for subworkflow error scenario

Change-Id: I401e9cb33245e29f154e8c50aff471d54101eebb
Merge "Fixing processing subworkflow result"