Use new class to detect Cite errors inside templates

Bug: 51337
Change-Id: I1cd9e2beaa64a84ddc6d690fbc483f16d9350b68
Merge "Use new class to detect Cite errors inside templates"