Minor optimization in listing identities. Providing better logging when invalid intent is received.