Handle exception when no principals found in SecurityService.getPrincipals