Toast predates machine-sliced bread, which is what "sliced bread" refers to. Sliced bread made toast better (easier to automate), but that doesn't make toast the best thing since sliced bread.
The article you linked explains that "sliced bread" is the best thing, to which all later (not just bready) inventions are compared.
Isn't the joke that the particular piece of toast always postdates the particular slice of bread it was made from? I.e., toast is the best thing since sliced bread because first we had sliced bread, and then we toasted it. It's a dumb dad joke
are you really under the impression that vernacular expressions are always perfectly logical and thus showing how an expression would not be logical proves that it was never actually in common use?