A friend of mine has a great line for whenever something unexpected happens in a demo: "I'm glad this happened and I'll tell you why..."
I've heard it a few times and it provides the impression that you weren't going to explore something important in your planned presentation which is a bit of a slap to the audience. I prefer "This gives us an opportunity to talk about..."
Your presentation shouldn't be an accident, you shouldn't be glad you would have failed to tell us something important had things gone right, you should be glad to react to changing circumstances and explain something off the cuff.