(Bug 71312) Do not strip empty <tr> nodes if they have html attrs

* Added new test which fails without this patch but passes with.
* Fixes rendering of the test case in the bug report.

Change-Id: Ia658cd66aac73cfeac97a30508c01fec7397a9a3