fix exceptions in case a user has deleted all tasks

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