I think I would contact your old insurance company and your new company and get the final date and the active date to see if there is any overlap. If there is, then I would bring the proof to the police station.
If there is no overlap, but it is within a few days, they will probably cut you some slack.
If you did not buy the insurance until after you got the ticket, Gong!!!