Fixed issue #7759: Sending email invitation takes lot of memory when having alot of tokens