Cancel URL button function if URL is empty.