Bug fix in the template processing.
Merge pull request #123 from msyk/fix-alert-on-irrelevant-popup

Bug fix in the template processing.