CASC-180: Fixed try/catch block issue with URL creation.