Fix #939: median aggregator crash on null value