Fix `hasOwnProperty` check in IE<9

I already opened one PR for this, but closed it due to my mistake. It turns out it was IE error and this PR should fix it. Error is explained in this [StackOverflow post](http://stackoverflow.com/a/1186510/178058).

Hope you will merge this PR!