do not crash on undefined token (#410)
do not crash on undefined token (#410)

It seems we can get undefined returned here, which currently makes us
crash. So let's avoid trying to slice the string in that case, and just
report that there's no token instead.

Fixes #409.
atom-community/sync-settings