Fixes foreach empty array bug in _widget_tabs.php.