Fix crash when URL == nil