Checking if kind is email and not adding it to the path,inorder to get badgeInstances by  email