Fix segfault when old task in queue after setup/update