Apache FOP Code fix (bug 37743)

Code fix
by
MM
(fixes bug 37743)

:

Bugfix: ClassCastException on certain fo:inline with border combinations.