Fix window.URL.createObjectURL is returning undefined in Chrome