Added modalityType argument to GuiUtils.htmlMessage.