Fix for failing auto-login using RavenDB - authentication-related methods needs to be aware of background indexing.