Tell ya what. There's inheritance for when you first create a document, I'd suggest you use inheritance to get the BeneficiaryName the first time, and avoid it when creating the document.
You can change the value on PostOpen when the document already exists; I just remember needing inheritance to get the value when creating the doc.
I don't remember what was happening but I do remember a similar issue.
You could also try refreshing the UIDoc before you try to get the parentDocumentUNID.
And you could also look at the parentUNID, and not use the value if it's blank.
But I remember eventually just inheriting it.