Bug 970356 - neither getSubStringLength, nor selectSubString should throw if nchars is too large. r=cam