Update to model-key getChanges to prevent prev is undefined

This resolves #991