You did the same thing I would have done.

I feel bad when I see someone upset.
I want to go up to them, give a hug and console them,
but I never have. I am afraid to invade their privacy.