properly handle tasks with no project