fixed bug(sync): service crashed when trying to get tasks from empty tasklist;