Fixes #28960 - Configuration Error Reports not sent
Place the Host.authorized search in a begin block so when it fails it does not brake sending emails for other users. Also, place it in an User.as block so it executes in the contex of the user being checked
Related issues
Bug #28960: Error "Couldn't find Host::Managed with 'id'=" when sending Configuration Error Reports
Fixes #28960 - Configuration Error Reports not sent
Place the Host.authorized search in a begin block so when it fails it does not
brake sending emails for other users.
Also, place it in an User.as block so it executes in the contex of the user being
checked