isPlainObject does not work in IE8

The function is trying to run the function getPrototypeOf, when the function is false. (As it's not natively in the browser)

Added an extra check, causing it to revert to shim.