Fix NPE if no Auth Realm is defined