Add .hasOwnProperty checks to avoid using .content and .properties inherited from the parent prototype
Merge pull request #1224 from gonchuki/fix_1223

Add .hasOwnProperty checks, fixes #1223