Fix panic when there are no gearman jobs