Handle cases where model.get(relation.key) is undefined