I also incorrectly took "
the matter was going to court" as a reference to the driving offence not the producer offence, however my previous answer is still true of the producer offence.
The 7 days to produce is a statutory defence to the charge of failing to produce at the time of the stop. This often has the effect of stalling the commencement of court proceedings but there is nothing in law which says that proceedings can only commence after the 7 days have elapsed.
To paraphrase Section 164
Road Traffic Act 1988 (as amended):
A person driving a motor vehicle on a road must, upon request by a constable, produce his licence and its counterpart for examination. (This is at the time of the stop).
A person who fails to do so is guilty of an offence.
This next text is lifted straight from the Act:
(8) In proceedings against any person for the offence of failing to produce a licence and its counterpart it shall be a defence for him to show that�
(a) within seven days after the production of his licence and its counterpart was required he produced them in person at a police station that was specified by him at the time their production was required, or
(b) he produced them in person there as soon as was reasonably practicable, or
(c) it was not reasonably practicable for him to produce them there before the day on which the proceedings were commenced
http://www.statutelaw.gov.uk/content.aspx?LegT ype=All+Legislation&title=road+traffic+act+198 8&ActiveTextDocId=2276811