Merge "Add back the throwIfParentInstance checking in getAffiliationIds" into oc-dev am: 91c6e44e9e
am: 1fe0c5cae8

Change-Id: I2fb7103267fbcf76ede3f168b4d7b4892c501943