Fixed token error handling

Token error handling no longer throws an exception upon non-fatal
warnings. Only a warning due to an incorrect token type will result in a
TokenError.

Bug: 70066
Change-Id: Ia20599973466bf6e638ba43b04e873ccd5f8cd06