Apache FOP Code fix

Code fix
by
JM
:

Bugfix: Fixed a copy/paste error in the table layout code that caused wrong page
break decisions when table-headers and/or table-footers are used.