Bug in CompositeContainer if no sub-container

Fixed a bug when a CompositeContainer was called without sub-containers.