Fix minIDs and maxIDs bug in FacetDataCache for negative numbers