Fix endless resource dependency loop

when dependeing on a bundle that also has a dependency.  I encountered
this when trying to define a custom theme bundle that depended on
barceloneta.