Fix a crash that can result if text codecs are allowed but textsupport is disabled.