Always declare window.URL even if undefined

Otherwise it breaks feature detection,
"ReferenceError: Can't find variabl: URL" in Safari 5.1
Merge pull request #3459 from Rob--W/define-URL

Always declare window.URL even if undefined