Alert with empty DOM on Android

Hello there. I’m not really sure if this is a bug or something I’m missing:
Sometimes when I reach a specific alert screen in the app I’m testing, it displays the following DOM:

<?xml version='1.0' encoding='UTF-8' standalone='yes' ?> <hierarchy index="0" class="hierarchy" rotation="0" width="1440" height="2392"> <android.widget.FrameLayout index="0" package="com.csg.securechat" class="android.widget.FrameLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[37,686][1291,1678]" displayed="false" /> </hierarchy>

This is the XML that should be loaded: https://gist.github.com/VitorJeremias/b78c0974100c97a970c98bb74167933a

Sometimes it returns the correct DOM and sometimes the wrong one and I don’t know what might be causing it.
On Appium Desktop, if I refresh Source/Screenshot several seconds after the screen is loaded, the screenshot and the correct DOM appear on the GUI but I’m not able to click on the elements (The element attributes on the right side stay blank no matter where I click on the screenshot or the DOM).