Fix error when ignores have no matches

expected an array but get a null object