avoid updating model if doc is undefined
improved error log in the case of local storage inconsistencies
improved error log when resolving models
0.7.1