Detect NULL arg to *task_set

Fixes: #60