Fix crash when set nil text