This issue caused me about a days worth of trouble trying to revive The Red Prince. He wandered in to a massive group of mobs and died in the middle. I finally was able to kill them all just a minute ago but I think there should be better path AI written. In general, it's pretty good. But the shortest path should be rerouted if it's through a group of enemies that are visible.
There is a full account of what happened and how I solved it in a topic under the Tips/Tricks forum.