Clean up logic for if there is no service param

If there is no service param given or if checking the service param is
disabled, we should skip over all the checking and just return the cleaned
service url.