[4.1] Graceful `@parent` directive handling [#4942]

implements proposal in issue #4942 for v4.1