I don't believe it's possible to be grateful to someone you loathe. If your loathing isn't at least temporarily overwhelmed by the gratitude, you aren't really feeling gratitude, you're merely mentally aware you should be and paying mouth-service to the fact.