[BUGFIX] Fix broken file reference attachments
This commit fixes FileReference attachments of multiple consequtive mails that are sent via the mail queue, for example via the forms finisher with a user and an admin mail, where files need to be attached to both mails.