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