Fixed KeyError exception when resolving recipients' names