Bug fix for HtmlMessageCodecTest