about dhx.alert with dhx.ajax().sync().get

My codes :
var xhr = dhx.ajax().sync().get(url, {guid: ‘XXXXXXXXXXXXXXXXX’});
if(xhr.responseText == ‘ERROR’){
dhx.alert({
title:“Warning”,
message:‘System resources are not working properly.’,
callback: function(){
location.replace(real_domain);
}
});
}

  • dhx.alert(“There is an error”); //the same result

The line with “dhx.alert({” makes an error ( touchui.js:317 Uncaught TypeError: Cannot read property ‘appendChild’ of null ).

However, alert is OK.

Please let me know why “dhx.alert” makes an error.