Don't rescue unrelated NameErrors when looking up types in ActiveRecord::Inheritance.compute_type.

This fix prevents us from improperly rescuing errors when the module
being looked up exists but includes an bad reference in its
definition. In those cases it is better to fail noisily with the
actual bad reference than to rescue the error.