Limited Wish is 7th, out of bounds.
That's why I questioned whether it was legal.
Wall of Ice is Evocation, and thus same problem as Resiliant Sphere.
Sorry I didn't check. Seemed like it should be Conjuration. Stupid random school distributions...
Hmm... what about Antimagic Field? It would depend a bit on DM interpretation, but it might work, if you're wanting to block MDJ. It would also block a lot of other effects, and so might be useful in some kind of general contingency, rather than one for a specific spell.
Dimension Door is a pretty good one, also, and has the advantage of not taking you completely out of the fight, unlike Teleport (and lacks that nasty mishap table). You could say DD 1000 feet straight up (assuming you have a Feather Fall effect of some kind available). That would get you out of range of a lot of stuff, but still within long range for your spells