Strip duplicate querystrings from the url before adding document.location.search

When a querystring is passed with the url (for example the Translatable locale) it is duplicated by adding document.location.search each time the content panel is reloaded, and so it should be stripped from the url first in the function doAdd().