Influence of statistical fluctuations on $K/\pi$ ratios in relativistic heavy ion collisions