table footnote groom fix

A few things. I added an if statement, so the groom will work differently on <p> elements depending on if they have child elements. If there are no children elements, it simply wipes the <p> text clean (after it's assigned to a new temp variable), creates the <sup>, and dumps the p text back in afterwards. If there are child elements present, it creates a <sup> element and specifically inserts it at the first location, and changes the p text (text prior to the first child) into the sup's tail. Though, now that i've typed this out, I probably could have just done that for <p> elements whether or not they have children... eh, I can update it, or we can just leave it as is for the next two weeks.