Fixed 'NAFQA-152'. Bug in SecurityCheck: Templates will be judged wrong