Use new method to check if an attribute exists in models.update

The method hasattr does not work for field declared with @property

Change-Id: Ifcdc462c2bd5917fce81dd1edf8c81ec8b8d2ffa
Merge "Use new method to check if an attribute exists in models.update"