fixed unwanted behaviour when querying a model instance with a subset of the model's fields and then updating it
(cherry picked from commit f06f6a2)