Fix mock pgm_flush_peers_pending() determing end of application vector.
Fix mock pgm_flush_peers_pending() determing end of application vector.

jdelgadoalfonso/openpgm,jdelgadoalfonso/openpgm,jdelgadoalfonso/openpgm,jdelgadoalfonso/openpgm,jdelgadoalfonso/openpgm,jdelgadoalfonso/openpgm