Check error status after every PolKitAuthority usage
Otherwise if some error occurred in e.g. checkAuthorizationSync call,
enumerateActions call would also fail (as PolKitAuthority already set
error flag internally)
Differential Revision: https://phabricator.kde.org/D5983