Make sure null task is returned every time there is no tasks to do