Bug #12065: Don't do isInvsible() check if checking whether current element has active children