Fixing bug custom notification template bug

If there is multiple entries being notified for at once, this will
ensure data for each entry is used when that entry's template is
compiled.