Fixed NPE when TextField value is null (#11021)

Ticket: 11021
Change-Id: If3b99333a116e6191ba3f563738e456a07173ab4