Merge pull request #1840 from clebertsuconic/2.4.x

https://bugzilla.redhat.com/show_bug.cgi?id=1141873 - leak on PagePositionImpl
fixing broken test