This feels like the intersection of a technology problem and a communication problem. What do you do when someone says something that is technically wrong? I understand not wanting to embarrass someone else, but I also see Yehuda's point of view. People will be worse off if they do bad things in their code, so the best time to correct misinformation may have been right then, when everyone who heard it was still all together.
Maybe it could have been done with more tact, but I don't see it as heckling. You can attack someone's ideas without attacking the person. The less tied up you are to being right, the more open you are to criticism taking it personally, the more likely you are to learn something new.