Check for presence of tokens always available in a file with valid syntax

Addresses PHPCS outputting some notices when processing files that have syntax errors (which really shouldn't be processed anyway).

See https://github.com/WP-API/WP-API/pull/558