Fix error causing HtmlString to throw an error.

The error was "Cannot Convert Object to Primitive Value"