Fix fatal error on XHR from non-domain requests (file, etc) 

Helps to fix script XHR-policy fail  for standalone usage as in the case of epub3 for example, viewed through UIWebView