Bug Fix:
Found mispelt variable. $_objectregistry_id => $objectregistry_id. Fixed.