LPS-43057 fix Duplicate entry insertion for structure parent-child

hierarchy.

Fixes LPS-43057 tested as upgrade from 6.1.2-ga3.