Fix My Dumb-Ass Mistake (#526)

I made a mistake in #526. I've fixed it, and tested it more thoroughly. All should be well now.

Seeing this released as part of Doorkeeper 2.0.1 would be swell ;)