Adjust prefilter test to error on string indexing in oldIE
Use charAt instead of string indexing for oldIE's sake. Fixes #14356.