Handle nil associations

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