Fix crash with nil URL.