m_identity: ensure that non-unique identities have is_unique set to 'undefined' (instead of false)

(cherry picked from commit d69be4559f1104d1efb5dab38962a72ba595a721)