Fixed inline scripts in DialogXML not executing.