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

(cherry picked from commit 2feea7caf103fa72e68f1c3208af7c211d30e2be)

Conflicts:
	xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-wikimacro/xwiki-platform-rendering-wikimacro-api/src/main/java/org/xwiki/rendering/internal/macro/wikibridge/DefaultWikiMacro.java