Restore hasOwnProperty.