Apache FOP Code fix (bug 41426)

Code fix
by
JM
(fixes bug 41426)

:

Fix for ClassCastException when fo:wrapper was used as direct child of fo:flow.
Note: "id" attributes are still not handled properly on fo:wrapper!
Thanks to Adrian Cumiskey.