Fix issue with review of segmented task

A segmented task has multiple follow up tasks which which required
a change in the Middleware. Fixes issue mentioned in comments of
issue #692