Add missing hasOwnProperty check in for-in loop.
Merge pull request #1 from ghengeveld/master

Add missing hasOwnProperty check in for-in loop.