(a)A permittee, in compliance with the terms of a permit, may carry a concealed handgun as allowed by state law. The permittee shall carry the permit, together with valid photo identification, at all times during which the permittee is in actual possession of a concealed handgun and shall produce both documents upon demand by a law enforcement officer. Failure to produce a permit upon demand by a law enforcement officer raises a rebuttable presumption that the person does not have a permit. Failure to carry and produce a permit and valid photo identification upon demand as required in this subsection (2) is a class 1 petty offense. A charge of failure to carry and produce a permit and valid photo identification upon demand pursuant to this subsection (2) shall be dismissed by the court if, at or before the permittee's scheduled court appearance, the permittee exhibits to the court a valid permit and valid photo identification, both of which were issued to the permittee prior to the date on which the permittee was charged with failure to carry and produce a permit and valid photo identification upon demand.