Fix #2137: Avoid showing 'null' when intending to clear a value.

It turns out that jQuery treats a null input to the text() method
as a valid input, and converts it to a string. Replace this with an
empty string instead to clear the value as originally intended.

Change-Id: Ie616038fc05ec24c03f8e9fceb0396cae485f472