AMQ-4994. Fix OOME while browsing deep queues
https://issues.apache.org/jira/browse/AMQ-5011