Fix issue of having multiple Identities before clientInitialized signal.

clientInitialized signal should trigger authentication check only on
the last identity.