FLUID-4794: removed hasOwnProperty

Removed the use of hasOwnProperty in favour of checking if the property is undefined or not. It should never happen that the property itself contains the value of undefined.