Impact of magnetic-field fluctuations on measurements of the chiral magnetic effect in collisions of isobaric nuclei