It does look like a bug to me. It also happens in my O2016 32 bit (16.0.5332.1000).

FWIW, using a For Each loop would also avoid it.