to be happy that a situation that is bad is not as bad as it could have been Well, at least you weren't hurt. I suppose we should be grateful for small mercies.
Check pronunciation: thankful
Definition of thankful adjective from the Oxford Advanced American Dictionary