If the queue is empty, return 0 for queue length
Merge pull request #6 from grepory/fix_empty_queue

If the queue is empty, return 0 for queue length