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

There are cases where a relation is not set. Don't clearDeletedModelsFor undefined collection or model.