The contract allowed the defendant to deliver apples or oranges, and therefore was not breached upon delivery of oranges
In your re-writing, you have admirably explained why the original sentence is "technically incorrect". You have shown that the subject of the sentence needs to be next to its verb.
The subject is "The contract" and, according to the reference, it should not be separated from its verb ("was not breached") by a comma.
I think that's bunkum.
It's additional information (which can be added after a comma), and the subject is omitted as it's understood. The sentence could easily be "corrected" by adding the subject back explicitly:
The contract allowed the defendant to deliver apples or oranges, and therefore it was not breached upon delivery of oranges.
...but that changes the emphasis slightly. It certainly slows the sentence down, as — even though the brain knows the sentence is talking about the contract, it needs to interpret it. Oh: it must refer to "The contract." Omitting the subject, and using a singular verb, means that the verb was can only refer to "the contract."
So, because the entire two-clause sentence is talking about the contract, it's perfectly permissible to omit the subject. In fact in some circumstances it's actually preferable:
The contracts allowed the defendant to build dams or weirs, and therefore they were not breached when the river flooded.
In that sentence, what was breached? It could be the contracts; it could be that dams were actually breached and caused the river to flood. However, a dam which overflows is behaving as a weir. The ambiguity could be removed by replacing the pronoun with its referent,
The contracts allowed the defendant to build dams or weirs, and therefore the contracts were not breached when the river flooded.
...but is actually more easily and fluidly/idiomatically removed by omitting the repeated subject altogether:
The contracts allowed the defendant to build dams or weirs, and therefore were not breached when the river flooded.