Do no issue type elements if the value is null or undefined
Improve createRegistration and updateAttributes tests