Fix #24: NPE on empty task list
Merge pull request #25 from passy/empty-task-list

Fix #24: NPE on empty task list