When I was still wearing a prosecuting attorney's hat, I used to ask all the time, kind of "tongue in cheek" but not really, whether we could charge people money for the waste of resources. People will look at it and say what's the big deal. But my view was that every minute wasted on this nonsense was a minute I didn't spend on an important case and i wanted a way to teach people a lesson to stop wasting resources. Alas, we were all so busy that once dismissed it was never thought of again and we didn't correct this irresponsible behavior.
If I had my way, the two of them would have to pay the salaries of the officers, paralegals and attorneys for every minute spent on this case. Then maybe people would think twice about doing this.