Sometimes the text is nil (with radio type)

Only split if text is not nil fixes the issue.