Update update_index.rb

Handles case if object no longer exists.