Protection against lost attributes with saveAssociated

- attributes that are added have to have their id unset before being
added in order to avoid overwriting existing attributes