SOLR-8001: Fixed bugs in field(foo,min) and field(foo,max) when some docs have no values (merge r1701081)