Fix empty URL handling.