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.
Update version.rb
Merge pull request #2 from outright/handle-nil-associations

Handle nil associations