fix crash when swiping empty task list