[TaskManagerTest] Change nullptr to 0