             {
                 var bundleName:String = bundleNames[j];
                 
-                bundles[bundleCount++] = installCompiledResourceBundle(
+                var bundle:IResourceBundle = installCompiledResourceBundle(
                     applicationDomain, locale, bundleName, 
                     useWeakReference);
+                
+                if (bundle)
+                    bundles[bundleCount++] = bundle;
             }
         }
         

    //
    //--------------------------------------------------------------------------

    /**
     *  @private
     * 

        
        if (!bundleClass)
        {
            if (ignoreMissingBundles)
                return null;
            
            throw new Error(
                "Could not find compiled resource bundle '" + bundleName +
                "' for locale '" + locale + "'.");
