fix NPE for the case when a user has deleted all tasks

git-svn-id: file:///home/svnroot-zephyrsoft/projects/trackworktime/trunk@511 f37aa4ac-6963-46a2-a1ff-558a307fa857