linter: fix null results that should have been a token in TokenQuery classes
2 files changed