Fix filtering of processed task.
Merge pull request #8 from wajam/manu-fix-persistent-queue

Fix filtering of processed task