Fix to the method `element_is_not_hidden` incorrectly dealing with removing invisible elements from resulting array.