Update getStateDetails() to handle empty queues