Pass output from task API to convey_task_result

Applying winson-c-chan's fix to upstream (Thanks Winson!)

Change-Id: Icce25f55d3053c7cebb2a993975f35d14f9efe56
Closes-Bug: 1362287
Merge "Pass output from task API to convey_task_result"