remove text link wrapper if all links removed