Fixed IE8 issue with hasOwnProperty()