I concur. Checking for this.element is the simplest solution. I have encountered this situation several times and have used this as my solution. For some reason, I don't like having to do it, but it works.
I am pretty sure there is an old post on this topic. I quickly tried to find it, but came up empty.