Updated examples to check dequeued task for not None.

https://github.com/kushaldas/retask/issues/2