[Task] Fix queued task cancellation

When the action callback failed and it returns 'failed' parameter set to FALSE,
the queued task was not completed and the process blocked.

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>