Bug 51840: removeChild() on a non-object in HtmlFormatter line 256

Change-Id: I2e3317abfba62991ec528d6d1a3e826dfd33bcb1