Manage null values in ST_ACCUM