Improved bug fix. Now it is not necessary to set the value explicitly to nil, a String of length 0 is interpreted as non valid