Fixed potential ClassCastException getting error

Update DefaultErrorAttributes to expect a `Throwable` ERROR_ATTRIBUTE
rather than an `Exception`.

Fixes gh-1931
Merge pull request #1931 from juzer/master

* pull1931:
  Fixed potential ClassCastException getting error