Fix bug in generating autoOffWarnHtml.