Fixed a text/gemini parsing regression.