Issue in _processOnPosition where the item in onPositionItems[i] can be undefined mid-loop...

Fixing issue in _processOnPosition where the item in onPositionItems[i] can be undefined mid-loop if the callback that is triggered changes the length of the onPositionItems array -- onPositionItems.length becomes zero and there's an uncaught TypeError when trying to access item.fired the next time around.