I'm confused by these two points. If you weren't doing anything wrong or illegal, then why do you still have "court"?
Magistrates cannot vacate charges.
If you have an attorney have them try and contact the Commonwealth's Attorney and have the whole thing 'nolle prossed.'
At the least your attorney should buttonhole the CA before the case is called.
Many of the CAs will talk to another attorney they see and ask what case they are there for if they see them in court.