textfield: dont try to set cursed value to nil