Unmark as invalid when token can be refreshed

It is totally possible that the server (in a bad state) responds temporarily with an status!=200 and on a retry actually refreshes the token. So we need to reset the flag `self.invalid`.