There is no case when a valid problem would have 0 tasks (a problem has to assess the student in some way), so it would fail well before this logic.