Hmmm. But the Mule operated outside the Seldon plan.
Without giving too much away, The Mule was a unique being who could not have been predicted, who could significantly change the future of a whole galaxy.
The Seldon Plan did have contingencies for this kind of thing, hence the Second Foundation novel.