prevent an infinite loop when the ip->ipNetToMediaEntrySize is 0