TEZ-938. Avoid fetching empty partitions when the OnFileSortedOutput,
ShuffledMergedInput pair is used. Contributed by Rajesh Balamohan.