Only load stylesheets and style tags into main document if they are not children of an element tag.