Added an assertion against the unwanted explicit port 0 in a URI.