Remove hasOwnProperty check for obejcts with no prototype