Don't create subviews if there is no container

Look for $subviewContainer.length before creating the subview