Fix wrong error layout if it has unescaped HTML.