RA-361: Create Allergy object

It's fair to call setCodedAllergen(null) and expect to get null when calling getCodedAllergen() so move the if one line below :)