Apache FOP Layout fix (bug 44160)

Layout fix
by
JM
(fixes bug 44160)

:

Fixed a possible IndexOutOfBoundsException that could happen with certain constellations
when footnotes are used.