QPID-5011: merge fix to 0.24 branch

git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.24@1507084 13f79535-47bb-0310-9956-ffa450edef68