Swallow exceptions raised when checking if exception should be excluded

This fixes some issues in Ruby 1.8.7 when exception's class redefines
`==` method.
Merge pull request #108 from szajbus/master

Exception classes that redefine == cause problems on Ruby 1.8.7