Ensure no double slash in get token URL

Before appending a slash to an URL, we should make sure
that the url doesn't already have one at the end.

Change-Id: Iff864d9b49cf3e3138f602a2c6615ed742f35698
Closes-Bug: 1337880
Merge "Ensure no double slash in get token URL"
Test commit