Fix bug not calling OAuth2Credentials.refresh correctly