MDL-24896 Do not access PHPMailer's private properties but use public API only