Notifications: checking teplate syntax when create

- the NotifTemplateMessage syntax is checked before storing in DB when
  creating or updating