Update chain to work when parent tasks are manually removed

Signed-off-by: Rick Copeland <rick@arborian.com>