Corrected problem with EmptyQueueException
Merge pull request #2 from rodrigos01/master

Corrected problem with EmptyQueueException