This fixes removing a task via a `cylc reload`.

@hjoliver, please review.