Merge pull request #870 from mulesoft/MULE-7773

MULE-7773: Ensure flow contruct is not null before use its name. Improve...
(cherry picked from commit 36c008d8a946550bc10988e5a0327b5e517cf955)