Respect the SQL std way to get 0 instead of a null value, when the condition is false and the aggregation function is used on an empty set