Fix deprecation error by using setEmptyString().
This line causes a fatal error.