Ensure text is not nil