Issue #2249723 by andrei.dincu: Use Element::getVisibleChildren() instead of element_get_visible_children()