Handle the case where dynamic content is in the middle of a page, selecting the first variant
Patch by Seifeddine Dridi, applied with some modifications


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_WhitespaceManagement@1578270 13f79535-47bb-0310-9956-ffa450edef68