Added check for own properties of response.set

It'll help if Object.prototype is extended with some methods