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

Fixups suggested by @ediosyncratic