added check for existing query string to avoid duplicate parameters and an invalid uri. this fixes bug http://issues.apache.org/bugzilla/show_bug.cgi?id=42229
Changed paths: