Bug 1055978: Correct misbracketed indexOf test.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1055978.