Fixed bug with no AuthnContextClassRefs and improved consistency