Add check for token presence.

Otherwise, bad things will happen, such as having a higher number of remaining requests than the limit.