Fix small bugs in oauth token collector

Test Plan:
youtube-uploader.khanacdaemy.org  and grant permission

Auditors: theobelaire