Handle when Sidekiq::BasicFetch.retrieve_work returns nil.

Fixes a crash caused by attempting to analyse the work’s message when the work is nil.