Fix AutoTokenizer when no fast tokenizer is available
# What does this PR do?

Currently, the `AutoTokenzier` API will not work when a user tries to instantiate a model that does not have a fast tokenizer, due to some wrong logic in the function `tokenizer_class_from_name`. This PR fixes that.

Fixes #13161