[TECHNICAL-SUPPORT] LPS-49700 Take into account the previous offset as well

Hi Sergio,

one of our customer tried to import several pages to the Wiki portlet, however, there are several small bugs which prevent it. I decided to create different tickets for the different issues.

This fix handles the use case when there are more tables on a page.

Tamás