[backport] 2.4.x geos 6373 persister failure

Fix:
https://jira.codehaus.org/browse/GEOS-6373