When a counter-based token is incremented, only save the update to the keychain if it is already in the keychain.

This fixes an issue where junk tokens were accidentally left in the keychain after the tests completed.