IE10 fails here "unable to get property of undefined or null". We can assume that compatibility will be used only in main browser thread, so we can use/refer `window` safely.

Add `!window.webkitURL` check and braces for single statement `if`.