[textlayout] Don't enter infinite loop when table is misfit
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>