Fix inconsistencies in exception handling between the base indexers.
And fix the incorrect test `test_generate_content_get`, which was
passing for the wrong reasons.
Migrated from D4152 (view on Phabricator)
And fix the incorrect test `test_generate_content_get`, which was
passing for the wrong reasons.
Migrated from D4152 (view on Phabricator)