The point is that when you try to call $$("rsetView") and there is no element with this id, perceives it as if you are trying to access a non-existent variable.
As a solution, with getChildViews you could find child views of the calling component. And then, for example, use find to hack whether the specific view exists.