Ensure style has children before trying to detach CDATA tags