Fix assert to match an earlier conditional.