A reference list is optional. Let's make sure we don't blow up if one doesn't
exist but prefer if one is there.
added correct lookup of ancestor encrypted data