PeerGroup: getMostCommonChainHeight() don't trace empty peer group

s == 0 and freqHeights[s - 1] is an invalid array index then