Fixes the `console.warn` error in IE8.