added necessary null checks to RavenUserStore<TUser>