HtmlFormatter: fix check for empty ruleset

This ensures that no unneeded HTML parse will occur

Change-Id: I2fae4bea555f823e5244c1430f9f3f43a3f78b71
Merge "HtmlFormatter: fix check for empty ruleset"