Fixed crash on changes to nil text