fixes error "reducer 'count_non_null' in condition 2 is not a valid reducer" (cherry picked from commit f4e9dcd40b)
f4e9dcd40b