Check `thing` is a class before checking `issubclass(...)`

Needed when `thing` is a string, like "c" or "I"