NAKACK2: Fix IndexOutOfBoundsException with trace enabled
NAKACK2: Fix IndexOutOfBoundsException with trace enabled

Sometimes buf.add removes messages from the msgs collection,
so it's not ok to cache the size.

belaban/JGroups,pruivo/JGroups,pferraro/JGroups,Sanne/JGroups,rhusar/JGroups,rhusar/JGroups,Sanne/JGroups,pruivo/JGroups,TarantulaTechnology/JGroups,danberindei/JGroups,pruivo/JGroups,TarantulaTechnology/JGroups,danberindei/JGroups,danberindei/JGroups,dimbleby/JGroups,pferraro/JGroups,TarantulaTechnology/JGroups,dimbleby/JGroups,Sanne/JGroups,belaban/JGroups,pferraro/JGroups,rhusar/JGroups,dimbleby/JGroups,belaban/JGroups