Were is perhaps the better answer here, but I would say that you could use either were or are in the sentence. They were happy at the time he rescued the shopkeeper, or they are happy now because they like the shopkeeper and are pleased that he is still alive.