(bug 44063) use .hasOwnProperty when checking for presence of object keys

Otherwise Firefox has troubles when 'watch' is used as a key, due to it being
also a function on Object's prototype.

Change-Id: I56e1637d8fe75ca94617b292098848625df61c0b