     {
         // Element is false if it was a simple type and didn't survive the 
         // casting as an object
-        if (!element || element["enabled"] == undefined || element["enabled"] == true)
-            return true;
+        try
+        {
+            if (!element || element["enabled"] == undefined || element["enabled"] == true)
+                return true;
+        }
+        catch (e:Error)
+        {
+            
+        }
        
         
         return false;

import mx.core.IVisualElement;
import mx.core.mx_internal;

import spark.components.supportClasses.GroupBase;
import spark.core.NavigationUnit;


                        break;
                }
            }
            
            // Make sure to not wrap if wrapElements = false
            if (!wrapElements && iter.currentIndex == numElements - 1)
                break;
            
            iter.next();
        } 
        while (itemIndex != iter.currentIndex)
