Fix bulk email template bug

Template extension tags must go first
Merge pull request #2199 from dimagi/mass_email_500

Fix bulk email template bug