fix for listing queues by prefix and allow search by queues with
messages only