Fixes delayed jobs being kept in the processing queue.
This patch was authored by @Andrewangeta and released by @jdmcd.
Pushing delayed jobs back into the queue should also remove them from the processing queue.
Pushing delayed jobs back into the queue should also remove them from the processing queue.