[DOCS][FIX] Fix reference check in indexed scripts/templates doc.