Harder check for IndexErrors in QA scripts
# What does this PR do?

This falls back by not adding the example when we get an `IndexError` for some obscure reason when trying to get the offsets of a given feature.

Fixes #15401 
_The documentation is not available anymore as the PR was closed or merged._