Catch errors when writing an index that contains invalid objects.