Hi.
It's just a coincidence. No need to worry about masturbation affecting your period.
According to Dr. Karen Rosewater, there is no evidence that masturbation affects your menstrual cycle, though there are plenty of other reasons why your period might be late.
I'm not sure how long you've been having your period, but periods are often off-schedule within the first few months or so after the onset of a girl's menstrual cycle. Cycles sometimes take a while to regulate themselves.
There may also be hormonal reasons for your late period, and such factors as high-stress and low-weight may also attribute to late or missed periods.
By now, it may have reappeared, in which case, everything's fine. But if you haven't gotten your period yet and it's been awhile, then definitely consult your family doctor or gynecologist, who can get to the bottom of this.
Take care.