The fix released with version PD4ML Pro 3.9.7 works fine for the first table of the provided example.

But the second table still sizes strange:
The last column only contains empty tags but occupies half of the table width while the text of the second column has to be wrapped.