Bugfix for calling requeue_failed_items without parameters

In the previous version nothing was requeued when no parameters were used.