Handle tables with irregular structure

this usually happens when there are colspans. In that case we might
have 2 td's in one row and 3 td's in the other rows.

Colspans are not yet handled properly but the code doesn't crash if we
have an irregular structure.