Notifications: fix bug in constraints of receiver

- two receivers with the same target(email) templateId and locale are not
  allowed
- this commit adds the templateId