BISERVER-8999 Fix exception on login.