Catch AttributeError in place of ValueError in token split()
Add test to trigger AttributeError in token split()