Fix email rendering: we cannot use GenericEntityModel here as injection
requires an Application