This patch fixes T63794 by updating duplicated bones' custom handle references to point the new armature's bones.
The problem occurs because B-Bones of a duplicated armature keep pointing the old armature's bones. The references are cleared upon entering Edit Mode because there are no matching EditBone for such bones, and find_ebone_link just returns NULL in such cases.