VertexBuffer:addBatch avoids incrementing iterator past end of data

Hopefully will fix error on Windows.