Earlier quoted context omitted.
http://www.defensivepatentlicense.com/ (i'm not asserting it is perfect, just that it is an effort towards what you describe)
It's an interesting attempt. The problem I'm seeing is that it seems to do nothing about non-practicing entities, or to prevent the sort of thing Microsoft et al have done with Rockstar, essentially paying to license a bunch of questionable patents with the foreseeable effect of giving the non-practicing entity enough cash to create a menace for their competitors. What could be an interesting solution is to prevent p…
It doesn't do anything about non-practicing entities because it can't. There's no formulation of words that could cause a license to have any bearing on NPEs.
Your potential wording would make the patent license completely unusable. Perhaps an alternative might be something along the lines of: You may not license a patent that has been involved in legal dispute. If a licensed patent is subsequently involved in legal dispute, either this license or that license must be terminated within NN months.