fix(glob): retain valid gitignore rules after parse errors (#36478)