Handle OAuth2Error when inherited from base Error

Related to https://github.com/thomseddon/node-oauth2-server/pull/68.
Agreed.