when detecting the clipRect ignore elements that are not visible and trigger an error if no element is visible