Fixed bug where nil would be set on a property of the local model which could delete existing data.