Don't crash on nonexistent classes

This allows libraries to handle nonexistent classes in a sane-ish way