bug fix: skip accessing 'this._instance' if invalid (for objects inside a plugin)