Changed where self._containerElement is set to avoid race conditions due to how isLoaded() works and the fact that it is possible to call view.addChildView just after view._containerElement is set but before the children are loaded