Don't fail on an invalid index, use a builtin EmptyIndex. This is important with the addition of OR-based queries