String.prototype.indexOf returns -1 for non-matches.

Previous check would wrap everything (unless `_super` was at position
`0` which is not possible).
Merge pull request #5481 from rwjblue/properly-use-indexOf

String.prototype.indexOf returns -1 for non-matches.