Detecting duplicate extra query parameters and throwing exception