That was sweet of you, to extend your kindness to the teller. Some people just suck sometimes, they feel small so they make others feel small to feel better.
I'm that bitch that tells those people off, but in this situation. there didn't seem to be a graceful way to do that. You handled yourself perfectly.