[preprocessor] Minor optimization following r178671.

Don't bother looking for parameter index of 'B' token if 'A' is not a parameter.
Fix build.
This should fix the build breakage caused by the api change in 178663.