Fixed another occurrence of the null reference to hasOwnProperty