prevent internal error from creating a feature/product with an existing name but different type
use QuerySet.count instead of len
Merge pull request #2512 from dimagi/fix-integrity-error

prevent internal error from creating a feature/product with an existing name but different type