patch/instance.updateAttributes: changes discussed on #1449

Pull Request created from #1720, since i've "lost" access to my older repo.
Shouldn't we also check that the database value has not changed?