Show the invalid URL in the exception message if host is not present