HHH-9512 fix

Avoid creation of invalid managed -> managed entity mapping in MergeContext when traversing cascade loop