tdf#150927: properly handle nesting in tables