Check for null tasks.