Based on the assumption that a queued job has lost its raison d'être when its argument had been deleted, ActiveJob::RNF ignores deserialization errors originating from a failed attempt to load that resource.
Add this to your Gemfile:
gem 'active_job-rnf'
It will automatically infect ActiveJob::Base.
See releases.