[stable6] Enable theming of the mail template header

Backport of https://github.com/owncloud/core/pull/7500 in case it's needed.