check for return of -1 from getToken

as demonstrated by ooo91883-1.doc

Change-Id: I11a7f0747334f4cecbfd34c9353598d875be02c2