Hi Praveen,
While creating document if you do not add any values to custom h context node then system will not create customer_h entity. So the system will have empty reference for customer_h context node.
But now what is your exact issue? can you give further more details about the issue?
Br Dharmakasi.