Fixed bug in delay queue where tasks with 0 counts left were left in the queue