Fixed single element + trailing slash check

elemId is returned as an empty string, not undefined or null
The previous checks resulted in a false positive.
Re-adjusted single element check
grunt generation
Merge pull request #173 from cboden/single-ts-fix

Fixed single element + trailing slash check