libpromises/evalfunction.c: treat bad data as 0 for mean and variance
Merge pull request #1250 from tzz/feature/list-folding-utility-functions2

libpromises/evalfunction.c: treat bad data as 0 for mean and variance