[Cashtab] Update bad tokenId validation function
Summary: improve embarrassingly bad artifact function
Test Plan: npm test
Reviewers: #bitcoin_abc, emack
Reviewed By: #bitcoin_abc, emack
Differential Revision: https://reviews.bitcoinabc.org/D17049