Add spec for #344
Check to make sure token isn't nil before checking type
Merge pull request #346 from rodjek/issue-344

Handle case where a colon is the last token in a file