Make sure result.affiliations is defined.