Accomodate feedback: 1) remove a redundant null check 2) add argument validation 3) transform a for to a while 4) fix a potential correctness issue by nulling out nextRecord in dispatch
Accomodate feedback:
1) remove a redundant null check
2) add argument validation
3) transform a for to a while
4) fix a potential correctness issue by nulling out nextRecord in dispatch

vancem/perfview,vancem/perfview,vancem/perfview,vancem/perfview,vancem/perfview