For some reason, we're looking for a template named {{NOINDEX}} instead of looking for the presence of the magic word.
Whoever wrote the code knew this too:
// See if article includes any templates that should trigger noindexing // TODO: This system is a bit hacky and unintuitive. At some point we // may want to switch to a system based on the __NOINDEX__ magic word.