For one thing, Belkar doesn't break the 4th wall during that scene. He's just explaining to Durkon how he came up with his line, and why it worked. More importantly, it's simpler to just take the things the characters say at face value, like Elan's immunity to damage from broken glass.