Fix AnonymousObjectToHtmlAttributes bug