Fix _validate function for ie8

Fix hasOwnProperty method for ie8