Apache FOP Code fix (bug 43910)

Code fix
by
JM
(fixes bug 43910)

:

Avoid a NullPointerException in AreaTreeHandler.endDocument().
Thanks to David Delbecq.