bugfix: gracefully handle empty lists of queues