duplicate item correction continues

- removed unneeded null check
- split GetUniqueElement into RecurseUniqueElement for the extremely
rare case where it needs to be called again.  So far this hasn't been a
legit concern but is useful for debugging
- redid the logic for correction duplicate items jquery and name
- added a sanity check to WrapJquery