This sounds like a great hack! Though I have yet to experience the problem you're refering to with a specific client, I've thought about it many times (and hoped I wouldn't encounter it).
IMHO, the code that is your hack should be included in future ezp distributions.
In any case, I hope you will add it to the hacks list in the community section.