Bug 1055978: Correct misbracketed indexOf test (r=fabrice).

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