XWIKI-11588: During wiki macro execution the context XDOM does not contains parsed wiki macro

(cherry picked from commit 5821a63e604c4bcbb689dd0e3a224bbf4b54afbd)