Merge pull request #1839 from clebertsuconic/2.3.x

fixing leak on pagePositionImpl and reverting JGropus fix as that's breaking 2.3.x testsuite