In compute_type, only rescue in actual cases of failed lookup attempts

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