Merge pull request #862 from mulesoft/MULE-7773

MULE-7773: Ensure correct initialization for dynamic referenced sub-flow...
(cherry picked from commit f0b3727354ac84cc3f11a04dfe06cd9c08cfca81)