Fix bug error if ext style has no main style with same selector.