Fixed issue in model.set() tryinig to add attributed to null