This fixes removing a task via a reload.

It adds a test and a fix.