More graceful `@parent` directive handling [issue #4942]

[4.2] Simplifies `Factory::extendSection` method
[4.2] Removes `@parent` from content before returning from `Factory::yieldContent`