Refactored the QualifyUri method to handle existing querystrings without duplicating them which fixes the infinite loop when calling delete-releases