Fixed Bug for checking presence of email template before sending mails