[BZ 1126500] handle aggregate metrics with NaN as a value
[BZ 1117299] Add missing negation from connection pool selection