[Bugfix beta] just because hasOwnProperty isn’t present doesn’t mean we shouldn’t use Object.prototype.hasOwnProperty for a consistent and absolutely correct outcome.
Merge pull request #5445 from stefanpenner/more-correct-clone

[Bugfix beta] more accurate clone when dealing with null prototype objects