fix for empty queues array
fix for empty queues array

jochenklar/daiquiri,aipescience/daiquiri,jochenklar/daiquiri,aipescience/daiquiri,aipescience/daiquiri,jochenklar/daiquiri,aipescience/daiquiri,jochenklar/daiquiri