IE fixes

- "undefined" errors for instanceof checks in IE
- Function.prototype.apply errors if arguments was null
More robust responses