Fix potential crash when text is nil
Merge pull request #129 from myell0w/mods

Fix potential crash when text is nil