[[ Bug 13598 ]] Make sure we don't pass invalid values to settextindex()...

... from idescriptreplace.