Bugfix: safe call of .hasOwnProperty(...)