Fixes broken example in task userguide (Issue #1357).

Probably haphazardly converted from `callback passing style` to using chains.