fixes #4192 - Handle associated ids for non-root-node structures