Fix nullptr for the text geometry.