Fix overridden hasOwnProperty