Don't add sphinx_internal_class_name field unless it's required.

And it's only required when STI models are indexed.