Cleaned up error handling in OAuthUtils.