minor fix in model.js
Merge branch 'model-cleanup' of github.com:frappe/frappe into model-cleanup