De Defectibus agrees.
VII - Defect of intention
23. The intention of consecrating is required. Therefore there is no consecration in the following cases: when a priest does not intend to consecrate but only to make a pretense;.....
Granted, De Defectibus is speaking about defects that could occur in the celebration of the Mass, but I gotta agree with Marie Auxiliadora. There is a whole laundry list agreeing with Marie Auxiliadora in that link.
Per De Defectibus, I fail to see how the heck +Fellay, Fr. Ward or anyone can think transubstantiation could have happened under such dubious circuмstances.
First of all, the example of the priest in the bakery does not involve pretense (like e.g. an actor mocking the sacrament), it involves the priest truly intending to consecrate out of spite, anger or some other reason.
Secondly, not all defects listed in De defectibus are invalidating, as it says in Art 1: "There are other defects, however, which may involve sin or scandal, even if they do not impair the validity of the Sacrament."
For some examples, see Art. 31, all of which refers to valid but gravely illicit acts.
The example Fr. Ward gave was of a newly ordained priest standing outside the bakery with 3 other newly ordained priests, one of them jokingly said the words of consecration while looking at the cakes on display in the window.
Hard to believe anyone, especially a newly ordained priest, would ever do something so stupid to begin with, but that priest said it as a joke. Per
De defectibus, no way was there any possibility of consecrating everything in the bakery.
Now I am no baker, but I am pretty confident that there are a lot of other non-wheat ingredients like salt and sugar in all the baked goods in a bakery, which in and of itself adulterates the "matter", per
De defectibus........."3. If the bread is not made of wheat flour, or if so much other grain is mixed with the wheat that it is no longer wheat bread, or if it is adulterated in some other way, there is no Sacrament."
So if the story about a priest joking, or about a priest mad at his bishop is even true at all, then per Per
De defectibus, the defect of matter dictates that no consecration took place.