Diff: Fix exception on property "constructor". Fixes #394.

Use hasOwn check instead undefined because the latter also
includes inherited properties.