Fix for creating new elements using xpath using EditLib.  Certain XPaths used to cause a stack overflow.