MDL-46576: Fix natural weight maximums aggregation (MDL-47009)