pixdesc: Only check against valid entries when iterating over lists of enums