Tweak to make Delayed::Job queue check compatible with non AR backends