Fix a bug where a sample's html was set to its docHtml.