avoid some questionable micro-optimizations
Adjust `actual_result_count` for sorted queries where the sort index doesn't
contain all the documents. Fixes LP #1237141.