   container = @
 
   childrenWithGetter = _( @allChildren() ).select (component)->
-    component.getter?
+    component?.getter?
 
   _( childrenWithGetter ).each (component)->
-    container[ component.getter ] ||= ()->
-      component
+    container[ component.getter ] ||= ()-> component
 
 createMethodsToGetComponentsByRole = ()->
   container = @
 
   childrenWithRole = _( @allChildren() ).select (component)->
-    component.role?
+    component?.role?
 
   _( childrenWithRole ).each (component)->
     getter = _.str.camelize( "get_" + component.role )

          # try in the window context.  this is almost always certainly a bug
          # so look into wtf is going on and which components are problematic
          containerElement = @$( component.container ).eq(0) if containerElement.length is 0

        containerElement.append( component.el )


    _.flatten( components )


container.register()

# This is the method by which a container injects the rendered child views
# into the DOM.  It will get passed the container object, and the component
# that is being rendered.
