Fix signature of Result in tasks tutorial. Closes #8343