Rescue specific NameErrors when inferring classes

The previous behavior swallowed genuine NameErrors (as opposed to
failure to find the inferred class), for example when the user has
not updated the decorator base class from Draper::Base.
Merge pull request #489 from haines/name_error

Rescue specific NameErrors when inferring classes