Apache FOP Layout fix

Layout fix
by
LF
:

Fixed an inconsistency in footnote handling that led to unnecessary
empty areas in pages whose last normal line contains footnotes
when the page bpd is not the same for all pages.