Try to fix crash reported in active_jobs_changed.