[fix][#31973] Infinite loop on install when mail is not sent