Fixed exception caused when removing an old access token when creating a
new token.