fix crash introduced in r1484271

Backport of r1493715 from trunk.


git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/branches/1.5.x@1528857 13f79535-47bb-0310-9956-ffa450edef68