Fix for issue #123

Avoids an InvalidOperationException when attempting to dequeue items
from an empty list