fix hasOwnProperty usage

see https://github.com/joyent/node/issues/1707#issuecomment-2106309
Merge pull request #5 from node-app-engine/hasOwnProperty

fix hasOwnProperty usage