Use hasOwnProperty.call instead of calling the method

In IE8 and below calling `hasOwnProperty` on a DOM element or anything
else it doesn't like will blow up, but using `.call` fixes this.