Fixing indexOf([], undefined, true) to return -1 insead 0