window: fix crash when deciding policy for view without URL
This is a regression from 78a30bac. It's actually expected that a web view may not have a URL yet when it's being opened from JavaScript. We have to guard against this condition.
This is a regression from 78a30bac. It's actually expected that a web view may not have a URL yet when it's being opened from JavaScript. We have to guard against this condition.