Fixed loading of modError class
Updated modPHPMailer to use getService instead of creating new instance of modError

* origin/pr/11991:
  Fixed loading of modError class