The plugin does not load sometimes, Uncaught Error: undefined missing ac/create

Hi Team,

My cloud Confluence app don’t load sometimes (about once in ten). I’m using atl.page.metadata.banner web panel do display my app and using React to render it. When the app doesn’t load I see the next error: Uncaught Error: undefined missing ac/create. Div with class “ap-content” that have contain my app is empty.
I note that react-layout.hbs and my .jsx files are executed, all data are fetched (i can see console log from this files).
I found some topics with same trouble:

https://jira.atlassian.com/browse/CONFCLOUD-67410?focusedCommentId=2025995&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-2025995

https://jira.atlassian.com/browse/CONFCLOUD-67710

I also noticed that these problems are related to getLocation() method of AP libary. My app also uses getLocation() method, but it works fine.

How can I resolve this error?

Thank you.