BUG/MINOR: debug: make ha_task_dump() always check the task before dumping it

For now it cannot happen since we're calling it from a task but it will
break with signals. No backport is needed.
1 file changed