TEZ-835. Fix a bug which could cause a divide by zero if a very small
sort buffer is configured. (sseth)