Modify the MongoDB pipeline to ignore the pairs that have an empty-value