Fix license key error.

It will only send the e-mail if all license keys have been assigned.

Change-Id: I458ee46fd200eaba8aff6aa66d291ad26c24228d