Don't infinite loop on tasks with no period