[GEOT-4656] AverageVisitor and MedianVisitor fail on null value