Fix & test for https://jira.int.corefiling.com/browse/REVIKI-573
(handling of empty table cells).

Cherry pick from master: 04d2b8a5a0248925e5c68bf9abbb9a7c1c864ea4