Handle missing records when indexing for search

There is nothing to index if the instance does not exist, therefore
the job should silently succeed.