Happens all the time. Just wait and overtake as soon as it's safe.

I find riding a scruffy old bike seems to reduce this...