Fixed problem related to empty-element tags with XML tag text objects

I found another problem with my work, basically it didn't ignore empty elements properly, as you can see in the test cases that I included. I made a change to the regular expression that excludes these, which fixes the problem.