Added extra check to avoid wrong events property returned in cases, when, for example event type coincides with Object property, such as nonstandard Object.prototype.watch, for instance