Bug 1055978: Correct misbracketed indexOf test.