Apache FOP Code fix

Code fix
by
JM
:

Fix for NPE with PNG images for RTF output.