Apache FOP Code fix (bug 38132)

Code fix
by
JM
(fixes bug 38132)

:

Bugfix: Certain border styles could lead to a NullPointerException.