Fix a bug in triad census that set the first element of the result to NaN, fixes lp bug #1172838.