BUG: list index out of range using new layout feature

Good to know your table spans over the page. I think this might be the same issue as: BUG: pymupdf4llm list index out of range in document_layout.py as well. Will investigate.